<include file="Public:header"/>
<a href="{:U('/Link/items')}">返回</a>
<form action="" method="post">
    <table>
        <tr>
            <td>类型:</td>
            <td>
                <select name="typeid">
                    <foreach name="types" item="t">
                        <option value="{$t.itemid}">{$t.name}</option>
                    </foreach>
                </select>
            </td>
        </tr>
        <tr>
            <td>标题:</td>
            <td>
                <input name="title" type="text" maxlength="50"/>
                <span class="must">*</span>
            </td>
        </tr>
        <tr>
            <td>链接地址:</td>
            <td>
                <input name="link_url" type="text" maxlength="50"/>
                <span class="must">*</span>
            </td>
        </tr>
        <tr>
            <td>简介:</td>
            <td>
                <textarea rows="5" cols="5" name="introduce"></textarea>
            </td>
        </tr>
        <tr>
            <td>排序:</td>
            <td>
                <input name="list_order" type="text" value="0" maxlength="50"/>
            </td>
        </tr>
        <tr>
            <td>等级:</td>
            <td>
                <input name="level" type="text" value="0" maxlength="50"/>
                <br/>
                等级为1的首页显示
            </td>
        </tr>
        <tr>
            <td>状态:</td>
            <td>
                <select name="status">
                    <option value="1">可用</option>
                    <option value="0">不可用</option>
                </select>
                <br/>
                只有可用才会显示在网站上
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" value="添加" class="btn"/>
            </td>
        </tr>
    </table>
</form>
<include file="Public:footer"/>